import { createSSRApp } from 'vue'
import 'uno.css'
import * as Pinia from 'pinia'
import uviewPlus from 'uview-plus'
import App from './App.vue'

//全局方法
import api from '@/api'
import http from '@/utils/request.js'
import * as tip from '@/utils/tip'

import store from '@/store';

export function createApp() {
  const app = createSSRApp(App)
  app.use(store)
  app.use(uviewPlus)
  app.config.globalProperties.$A = api
  app.config.globalProperties.$H = http
  app.config.globalProperties.$T = tip
  return {
    app
  }
}
